// 前端配置，定义路由---导出
// import loginVue from '@/pages/login.vue';
// import homeVue from '@/pages/home.vue';
export const routes = [
  {
    path: '/login',
    component: () => import('@/pages/login.vue'), // 路由懒加载
    // component: loginVue, // 没有使用懒加载--看看打包效果
  },
  {
    path: '/home',
    component: () => import('@/pages/home.vue'),
    // component: homeVue,
  },
  {
    path: '/usePinia',
    component: () => import('@/pages/UsePinia.vue'),
  },
];
// 嵌套路由;
export const childRoutes = [
  {
    path: '/login',
    component: () => import('@/pages/login.vue'),
  },
  {
    path: '/home',
    component: () => import('@/pages/home.vue'),
    children: [
      {
        path: '/home/user',
        component: () => import('@/pages/user.vue'),
      },
      {
        path: '/home/manage',
        component: () => import('@/pages/manage.vue'),
      },
    ],
  },
];
